package com.chiaching.webmagic.repostory.service;

import com.chiaching.webmagic.domain.document.GoodDocument;
import com.chiaching.webmagic.repostory.GoodsRepostory;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.elasticsearch.core.query.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.io.IOException;
import java.util.List;
import java.util.Optional;

/**
 * @email 1738870995@qq.com
 * @author: 何佳靖
 * @date: 2022/3/26 12:06
 */

public interface GoodsRepostoryService  {

    void addGoods(List<GoodDocument> goodRepostories);


    /**
     * 商品名模糊搜索
     * @param title
     * @return
     */
    List<GoodDocument> searchGoodsByTitle(String title);
}
